package com.roc.admin.domain.service.impl;

import com.roc.admin.domain.entity.Role;
import com.roc.admin.domain.service.RoleDomainService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleDomainServiceImpl implements RoleDomainService {

    @Override
    public Role createRole(Role role) {
        // 实现创建角色的逻辑
        return role;
    }

    @Override
    public Role updateRole(Role role) {
        // 实现更新角色的逻辑
        return role;
    }

    @Override
    public void deleteRole(Long roleId) {
        // 实现删除角色的逻辑
    }

    @Override
    public void assignMenus(Long roleId, List<Long> menuIds) {
        // 实现分配菜单的逻辑
    }

    @Override
    public void assignDepts(Long roleId, List<Long> deptIds) {
        // 实现分配部门的逻辑
    }
}